import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/hot_game_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class HotGameEntity {
	late int code;
	late String msg;
	late List<HotGameData> data;

	HotGameEntity();

	factory HotGameEntity.fromJson(Map<String, dynamic> json) => $HotGameEntityFromJson(json);

	Map<String, dynamic> toJson() => $HotGameEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class HotGameData {
	late String id;
	late String backimg;
	late String type;
	late String name;
	late String code;

	HotGameData();

	factory HotGameData.fromJson(Map<String, dynamic> json) => $HotGameDataFromJson(json);

	Map<String, dynamic> toJson() => $HotGameDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}